/*
Copyright © 2023 taiping
*/

package templates

var Router = `
package router

import (
	"github.com/kataras/iris/v12"
	"wit-admin-go/business/controller"
)

func {{.M2}}(app iris.Party) {
	{{.M1}} := app.Party("/{{.M1}}")
	{
		{{.M1}}.Post("/create{{.M2}}", controller.{{.M2}}.Create{{.M2}}).Name = "创建{{.M3}}"
		{{.M1}}.Get("/get{{.M2}}ById", controller.{{.M2}}.Get{{.M2}}ById).Name = "{{.M3}}详情"
		{{.M1}}.Get("/get{{.M2}}List", controller.{{.M2}}.GetList).Name = "{{.M3}}列表"
		{{.M1}}.Delete("/delete{{.M2}}", controller.{{.M2}}.Delete{{.M2}}).Name = "删除{{.M3}}"
		{{.M1}}.Delete("/remove{{.M2}}", controller.{{.M2}}.Remove{{.M2}}).Name = "永久删除{{.M3}}"
		{{.M1}}.Put("/update{{.M2}}", controller.{{.M2}}.Update{{.M2}}).Name = "更新{{.M3}}"

	}
}

`
